package com.zb.common.exception;

import lombok.Data;

@Data
public class CommonException extends RuntimeException {
    private Integer code;// 返回码
    private String message;//返回信息
    private Object data;// 返回数据

    public CommonException() {
    }

    public CommonException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
